import Vue from "vue"
import Router from 'vue-router'
//引入界面
import Text5 from '../components/text5.vue'
import Text6 from '../components/text6.vue'
//二级路由
import Text7 from '../components/text7.vue'

Vue.use(Router)
export default new Router({
  // mode:'history', //url不带#号
  routes:[
    {
      path:'/text5',
      name:'text5',
      component: Text5,
      children:[
        {path:'text7',  name:'text7',component: Text7}
      ]
    },
    {
      path:'/text6/:name/:sex',  //动态路由传递参数
      name:'/text6',
      component:Text6
    }
  ]
})
